package cloud.lysky.game.gamesampe.entity;

import cloud.lysky.game.gamesampe.constant.ItemType;
import cloud.lysky.game.gamesampe.constant.Rarity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(description = "物品类")
@Getter
@Setter
public class Item {
    @Schema(description = "物品代码")
    private String code;

    @Schema(description = "物品名称")
    private String name;

    @Schema(description = "物品类型")
    private ItemType itemType;

    @Schema(description = "使用等级")
    private int level;

    @Schema(description = "物品品质")
    private Rarity rarity;

    @Schema(description = "描述")
    private String description;

}
